package org.itboys.product.service;

import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.itboys.product.entity.PromotionProduct;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2016/7/4.
 */
@Service
public class PromotionProductService extends BaseService<PromotionProduct, Long> {

    @Resource(name = "productDS")
    private MongoDataSource ds;

    @Override
    protected MongoDataSource getMongoDataSource() {
        return ds;
    }

    @Override
    protected Class<PromotionProduct> getEntityClass() {
        return PromotionProduct.class;
    }
}
